-- GENERATED SPELL FOR [Akuno] --


function spell0_22377(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(39945,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22377', 3000, 1)
end

function Sorts_22377(pUnit, Event)
local choix_sorts_22377 = math.random(0, 0)
if choix_sorts_22377 == 0 then
pUnit:RegisterEvent('spell0_22377', 1, 1)
end
end

function mob22377_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22377', math.random(1500, 3000), 1)
end

function mob22377_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22377_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22377_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22377, 1, 'mob22377_Action')
RegisterUnitEvent(22377, 2, 'mob22377_Leave')
RegisterUnitEvent(22377, 3, 'mob22377_Kill')
RegisterUnitEvent(22377, 4, 'mob22377_Die')
